
// 配置路由规则
export default [
    //主页
    {
        name:'home',
        path:'/home',
        component:()=>import('@/views/Home'),
    },
    //登录
    {
        name:'login',
        path:'/login',
        component:()=>import('@/views/Login'),
    },
    //购物车
    {
        name:'cart',
        path:'/cart',
        component:()=>import('@/views/Cart'),
    },
    //分类
    {
        name:'category',
        path:'/category',
        component:()=>import('@/views/Category'),
    },
    //个人中心
    {
        name:'personal',
        path:'/personal',
        component:()=>import('@/views/Personal'),
    },
    //值得买
    {
        name:'worth',
        path:'/worth',
        component:()=>import('@/views/Worth'),
    },
    {
        path:'/',
        redirect:'/home'
    }
]